package gaobal;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

/**
 * Auther:ws@itany.com
 * Date:20-9-17 下午3:51
 * Version:1.0
 * Description:
 */
//全局异常
@ControllerAdvice
public class GaobalException {

    @ExceptionHandler
    public ModelAndView exceptionHandler(Exception e){
        ModelAndView mav = new ModelAndView("exception", "e", e);
       return mav;
    }
}
